package com.tuanzi.loan.web.lazy.miniApps.recommend;

import com.tuanzi.loan.business.service.miniApps.recommend.HealthHeadlineRecommendService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.miniApps.recommend.HealthHeadlineRecommendRequest;
import com.tuanzi.loan.vo.response.miniApps.recommend.HealthHeadlineRecommendResponse;
import com.tuanzi.loan.web.bean.CurrentUserBean;
import com.tuanzi.loan.web.lazy.LazyDataSessionModel;
import org.springframework.data.domain.Page;

/**
* @author weibifeng
*/
public class HealthHeadlineRecommendListLazyDataModel extends LazyDataSessionModel<HealthHeadlineRecommendRequest, HealthHeadlineRecommendResponse> {

	private static final long serialVersionUID = -8524751302590740632L;
	
	private HealthHeadlineRecommendService healthHeadlineRecommendService;

	public HealthHeadlineRecommendListLazyDataModel(HealthHeadlineRecommendRequest searchRequest, CurrentUserBean session, HealthHeadlineRecommendService healthHeadlineRecommendService) {
		super(searchRequest, session);
		this.healthHeadlineRecommendService = healthHeadlineRecommendService;
	}

	@Override
	protected Page<HealthHeadlineRecommendResponse> doLoad0(
			PageSearcher<HealthHeadlineRecommendRequest> pageSearcher) {
		return healthHeadlineRecommendService.list(pageSearcher);
	}

}
